<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page isELIgnored="false"%>
<%@ include file="taglibs.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>POS收单运营管理平台</title>
		<script type="text/javascript" src="<s:url value="/js/jquery-1.9.1.js" />"></script>
		<link rel="stylesheet" href="../../css2/common.css" />
		<link rel="stylesheet" href="../../css2/style.css" />
		<script language="javascript">
		   $(document).ready(function() {
			   displayShow('0');
	        });
			function addpanel(id,title,html) {
				window.parent.document.getElementById("framemain").contentWindow.addtabs(id,title,html);
			}
			
			function displayShow(id) {
			    $(".test").hide();
				$("#dis"+id+"").show();
			}
		</script>
	</head>
	
	<body>
	<div class="container">
		<!-- 侧边栏 -->	
		<div class="sidebar" id="test" >
			<s:iterator value="#session.session_merchant.menuList" id="element" status="stat">
			  <div class="test" id="dis<s:property value="#stat.index"/>" style="display:none;position:absolute; height:100%;overflow-y:auto;overflow-x:hidden" >
			       <h2><s:property value="#element.moduleCategoryName"/></h2>
				   <ul>
				   <s:iterator value="#element.modules" id="module">
				     <li>
						<i></i>
						<a href="javascript:addpanel('<s:property value="#module.moduleCode"/>','<s:property value="#module.moduleName"/>','<s:property value="#module.moduleAct"/>')">
						    <s:property value="#module.moduleName"/>
						</a>
					 </li> 
				   </s:iterator>
				   </ul>
			  </div>
	        </s:iterator>
		</div>
		<!-- //侧边栏 end -->
	</div>
	</body>
</html>
